package event.changeHoja;

import gui.jtab.leaf.JTabObjectLeaf;

import java.awt.Component;

import componentes.flor.Hoja;

public class ChangeHoja extends Component {

	private static final long serialVersionUID = 1L;
	String ID;
	JTabObjectLeaf miReceptor;

	public void addEventChangeHojaListener(JTabObjectLeaf receptor) {
		if (miReceptor == null)
			miReceptor = receptor;
	}

	public void launchEvent(Hoja hoja) {
		miReceptor.catchChangeHojaListener(new EventChangeHoja(hoja, ID));
	}
}
